//
//  LogoutRequest.m
//  collection
//
//  Created by Jing on 4/10/12.
//  Copyright (c) 2012 Tsinghua University. All rights reserved.
//

#import "LogoutRequest.h"

@implementation LogoutRequest

- (void)initParams {
    
    self.descriptionName = @"user.logout";
    
    LogoutRequestData* requestData = [[LogoutRequestData alloc] init];
    self.request = requestData;
    [requestData release];
    
    Response* response = [[Response alloc] init];
    self.response = response;
    [response release];
}

- (NSString*)buildRequestURL {
    
    LogoutRequestData* requestData = (LogoutRequestData*)self.request;
    
    NSString* requestContent = [NSString stringWithFormat:@"&email=%@&password=%@",
                                requestData.email,
                                requestData.password];
    
    return requestContent;
}

@end
